package org.spring.context;

import org.spring.context.bean.ExampleOne;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @author chengzhengzheng
 * @date 2019/11/5
 */
public class AnnotationConfigApplicationTest {

	public static void main(String[] args) {
		AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext();
		context.scan("org.spring.context");
		context.refresh();

		ExampleOne bean = context.getBean(ExampleOne.class);
		System.out.println(bean.hello());

	}
}
